import type { RouteRecordRaw } from "vue-router";

import type { RequestUserInfoReturnType } from "@/api/user/interface";
import type {
  RequestCartgoryOneReturnType,
  RequestCartgoryThreeReturnType,
  RequestCartgoryTwoReturnType,
} from "@/api/product/interface";

// 用户信息包括权限数据
export interface UserInfoState {
  token: string;
  userInfo: RequestUserInfoReturnType;

  menuRoutes: RouteRecordRaw[]; // 用于生成导航菜单的路由列表
}

// 属性管理-三级分类数据
export interface cartgoryStateType {
  categoryList1: RequestCartgoryOneReturnType;
  categoryList2: RequestCartgoryTwoReturnType;
  categoryList3: RequestCartgoryThreeReturnType;
  category1Id: number | null;
  category2Id: number | null;
  category3Id: number | null;
}
